package com.wlxt.springcloud.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin  //解决跨域访问问题
public class ClientController {

	@Value("${server.port}")
	private String port;
	
	@GetMapping("/msg")
	public String msg() {
		return "I am a microservice" + port;
	}
}
